﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Velocity.Test
{
    class Common
    {
        internal static string TEMPLATE =
            "Hi $name $surname, this output has been generated from a $templateType template on $date.";

        internal static string CLASS_TEMPLATE =
            "Hi $clazz.name $clazz.surname, this output has been generated from a $clazz.templateType template on $clazz.date.";

        internal static string EXPECTED =
            "Hi John Smith, this output has been generated from a hibernate_lib_style template on {0}.";

        internal static string ARRAY_TEMPLATE ="#foreach($string in $string_array)<$string>#end";

        internal static string ARRAY_TEMPLATE_EXPECTED = "<John><Smith><hibernate_lib_style><{0}>";

        internal class Struct
        {
            /// <summary>
            /// Для Velocity важно что это Property а не Field
            /// </summary>
            public string Name
            {
                get;
                set;
            }

            public string Surname
            {
                get;
                set;
            }

            public string TemplateType
            {
                get;
                set;
            }

            public DateTime Date
            {
                get;
                set;
            }

            public Struct(string name, string surname, string templateType, DateTime date)
            {
                this.Name = name;
                this.Surname = surname;
                this.TemplateType = templateType;
                this.Date = date;
            }
        }
    }
}
